package com.jfcloud.mall.product.domain.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author zhaojunfu
 * @Title: ProductVo
 * @ProjectName jfcloud
 * @Description: 商品对象
 * @date 2020/9/523:03
 */
@Data
public class ProductVo {
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "商品图片")
    private String picture;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "商品库存")
    private Long storage=-1l;

    @ApiModelProperty(value = "商品状态 1:上架 0:未上架 2:已下架")
    private Integer status;

    @JsonIgnore
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @JsonIgnore
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @JsonIgnore
    @ApiModelProperty(value = "删除标记")
    private Integer isDelete;

    @ApiModelProperty(value = "商品类型名")
    private String typeName;
}
